package com.dlc.shop.live.common.vo;

import com.dlc.shop.bean.vo.search.ProductSearchLangVO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * 直播返回消息组成
 *
 * @author TRACK
 */
@Data
public class LiveMsgItem {

    @Schema(description = "消息类型 2.商品讲解状态变更 3.直播间状态变更 4.直播观看人数变更")
    private Integer msgType;

    @Schema(description = "商品id")
    private Long prodId;

    @Schema(description = "讲解状态 0未讲解 1讲解中")
    private Integer explainStatus;

    @Schema(description = "商品名称")
    private String prodName;

    @Schema(description = "语言列表信息")
    private List<ProductSearchLangVO> prodLangList;

    @Schema(description = "商品售价")
    private Double price;

    @Schema(description = "活动价(秒杀、团购活动的商品价格)")
    private Double activityPrice;

    @Schema(description = "商品介绍主图")
    private String pic;

    @Schema(description = "直播观看人数")
    private Integer liveUserCount;

    @Schema(description = "cmd命令")
    private String cmd;

    @Schema(description = "内容")
    private String content;

    @Schema(description = "状态")
    private Integer status;

    public LiveMsgItem() {
    }

    public LiveMsgItem(String cmd, String content) {
        this.cmd = cmd;
        this.content = content;
    }

    public LiveMsgItem(String cmd, Integer status) {
        this.cmd = cmd;
        this.status = status;
    }
}
